-- GENERATED SPELL FOR [Anok'suten] --


function spell0_16357(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16357', 30000, 1)
end

function spell1_16357(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(13584,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16357', 542, 1)
end

function spell2_16357(pUnit, Event) --@Wither Strike,n/a--
pUnit:FullCastSpellOnTarget(28887,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16357', 4260, 1)
end

function Sorts_16357(pUnit, Event)
local choix_sorts_16357 = math.random(0, 2)
if choix_sorts_16357 == 0 then
pUnit:RegisterEvent('spell0_16357', 1, 1)
end
if choix_sorts_16357 == 1 then
pUnit:RegisterEvent('spell1_16357', 1, 1)
end
if choix_sorts_16357 == 2 then
pUnit:RegisterEvent('spell2_16357', 1, 1)
end
end

function mob16357_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16357', math.random(1500, 3000), 1)
end

function mob16357_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16357_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16357_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16357, 1, 'mob16357_Action')
RegisterUnitEvent(16357, 2, 'mob16357_Leave')
RegisterUnitEvent(16357, 3, 'mob16357_Kill')
RegisterUnitEvent(16357, 4, 'mob16357_Die')
